import request from '@/util/request'

export const checkBalance = (userId) => {
	return request({
		url: '/wallet/detail/' + userId,
		method: 'get',
	})
}

export const prepareAddRecord = (recordParam) => {
	return request({
		url: '/wallet/record/prepare',
		method: 'post',
		data: recordParam
	})
}

export const addRechargeRecord = (recordId) => {
	return request({
		url: '/wallet/record/select/recordStatus/' + recordId,
		method: 'get',
	})
}

export const selectPayRecord = (userId) => {
	return request({
		url: '/wallet/record/select/' + userId,
		method: 'get',
	})
}

export const selectReceiver = (userId) => {
	return request({
		url: '/font/client/getReceiver/' + userId,
		method: 'get',
	})
}

// export const handelPay = (params) => {
// 	return request({
// 		url: '/font/client/getReceiver/' + userId,
// 		method: 'get',
// 	})
// }

